<?php

namespace Xin\Hint\Contracts;

interface Render
{

	/**
	 * 渲染
	 * @param mixed $data
	 * @param array $options
	 * @return mixed
	 */
	public function render($data, array $options = []);

	/**
	 * 渲染并输出
	 * @param mixed $response
	 * @param callable|null $callback
	 */
	public function output($response, callable $callback = null);

	/**
	 * 是否是 Ajax 渲染
	 * @return bool
	 */
	public function isAjax();

}
